package com.panopset.sf.apps.blackjack;

import java.awt.event.KeyEvent;

import com.panopset.game.blackjack.BlackjackGame;
import com.panopset.tools.CommandBinder;

class BlackjackCmdBinder extends CommandBinder {
    public BlackjackCmdBinder() {
        super();
        registerCommand(new CommandBinder.Command("Deal",
                BlackjackGame.CMD_DEAL, KeyEvent.VK_L));
        registerCommand(new CommandBinder.Command("Hit", BlackjackGame.CMD_HIT,
                KeyEvent.VK_H));
        registerCommand(new CommandBinder.Command("Surrender",
                BlackjackGame.CMD_SURRENDER, KeyEvent.VK_U));
        registerCommand(new CommandBinder.Command("Stand",
                BlackjackGame.CMD_STAND, KeyEvent.VK_S));
        registerCommand(new CommandBinder.Command("Split",
                BlackjackGame.CMD_SPLIT, KeyEvent.VK_P));
        registerCommand(new CommandBinder.Command("Double",
                BlackjackGame.CMD_DOUBLE, KeyEvent.VK_D));
        registerCommand(new CommandBinder.Command("Increase",
                BlackjackGame.CMD_INCREASE, KeyEvent.VK_I));
        registerCommand(new CommandBinder.Command("Decrease",
                BlackjackGame.CMD_DECREASE, KeyEvent.VK_E));
        registerCommand(new CommandBinder.Command("Reset",
                BlackjackGame.CMD_RESET, KeyEvent.VK_R));
        registerCommand(new CommandBinder.Command("Shuffle",
                BlackjackGame.CMD_SHUFFLE, KeyEvent.VK_F));
        registerCommand(new CommandBinder.Command("Auto",
                BlackjackGame.CMD_AUTO, KeyEvent.VK_T));
        registerCommand(new CommandBinder.Command("Count",
                BlackjackGame.CMD_COUNT, KeyEvent.VK_C));
    }
}
